package com.eascs.paymentdetail.entity;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @ClassName: O2oPaymentDetailEntity.java
 * @Description:
 * 				<p>
 *               财务收付明细Entity
 *               </p>
 * @author CXW
 * @date 2016年9月9日 下午2:39:21
 * @version V1.0
 */
@Entity
@Table(name = "o2o_payment_detail")
public class O2oPaymentDetailEntity {

	/**
	 * id
	 */
	@Id
	@Column(name = "id") //
	private String id;
	/**
	 * 贷款id，关联主表id
	 */
	@Column(name = "loanapply_no") // varchar(38) DEFAULT '' COMMENT
									// '贷款id，关联主表id',
	private String loanapplyNo;
	/**
	 * 贷款单号
	 */
	@Column(name = "bill_code") // varchar(38) DEFAULT '' COMMENT '贷款单号',
	private String billCode;
	/**
	 * 收付类型：S 收，F 付
	 */
	@Column(name = "payment_type") // varchar(8) DEFAULT '' COMMENT '收付类型：S 收，F
									// 付',
	private String paymentType;
	/**
	 * 科目：BZJ 保证金，GLF 管理费，FXBCJ 风险补偿金，DCBJ 代偿本金，DCLX 代偿利息，DCFX 代偿罚息，HRBZJ
	 * 划入保证金，HCBZJ 划出保证金
	 */
	@Column(name = "subject_type") // varchar(8) DEFAULT '' COMMENT '科目：BZJ
									// 保证金，GLF 管理费，FXBCJ 风险补偿金，DCBJ 代偿本金，DCLX
									// 代偿利息，DCFX 代偿罚息，HRBZJ 划入保证金，HCBZJ 划出保证金',
	private String subjectType;
	/**
	 * 金额
	 */
	@Column(name = "amount_money") // decimal(11,2) DEFAULT '0.00' COMMENT '金额',
	private BigDecimal amountMoney;
	/**
	 * 发生时间
	 */
	@Column(name = "update_time") // datetime DEFAULT NULL COMMENT '发生时间',
	private Date updateTime;
	/**
	 * 操作人id
	 */
	@Column(name = "operation_no") // varchar(38) DEFAULT '' COMMENT '操作人id',
	private String operationNo;
	/**
	 * 操作人姓名
	 */
	@Column(name = "operation_name") // varchar(50) DEFAULT '' COMMENT '操作人姓名',
	private String operationName;
	/**
	 * 发生来源
	 */
	@Column(name = "happen_source") // varchar(50) DEFAULT '' COMMENT '发生来源',
	private String happenSource;
	/**
	 * 备注
	 */
	@Column(name = "remark") // varchar(2000) DEFAULT '' COMMENT '备注',
	private String remark;
	/**
	 * 记录时间
	 */
	@Column(name = "record_time") // 记录时间',
	private Date recordTime;

	/**
	 * 红冲蓝补表示
	 */
	@Column(name = "red_blue")
	private String redBlueType;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getLoanapplyNo() {
		return loanapplyNo;
	}

	public void setLoanapplyNo(String loanapplyNo) {
		this.loanapplyNo = loanapplyNo;
	}

	public String getBillCode() {
		return billCode;
	}

	public void setBillCode(String billCode) {
		this.billCode = billCode;
	}

	public String getPaymentType() {
		return paymentType;
	}

	public void setPaymentType(String paymentType) {
		this.paymentType = paymentType;
	}

	public String getSubjectType() {
		return subjectType;
	}

	public void setSubjectType(String subjectType) {
		this.subjectType = subjectType;
	}

	public BigDecimal getAmountMoney() {
		return amountMoney;
	}

	public void setAmountMoney(BigDecimal amountMoney) {
		this.amountMoney = amountMoney;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getOperationNo() {
		return operationNo;
	}

	public void setOperationNo(String operationNo) {
		this.operationNo = operationNo;
	}

	public String getOperationName() {
		return operationName;
	}

	public void setOperationName(String operationName) {
		this.operationName = operationName;
	}

	public String getHappenSource() {
		return happenSource;
	}

	public void setHappenSource(String happenSource) {
		this.happenSource = happenSource;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Date getRecordTime() {
		return recordTime;
	}

	public void setRecordTime(Date recordTime) {
		this.recordTime = recordTime;
	}

	public String getRedBlueType() {
		return redBlueType;
	}

	public void setRedBlueType(String redBlueType) {
		this.redBlueType = redBlueType;
	}
}
